import request from '@/utils/request'

export default {
  getExamInfo (queryInfo) {
    return request({
      url: '/student/getExamInfo',
      method: 'post',
      data: queryInfo
    })
  },
  allExamInfo () {
    return request({
      url: '/student/allExamInfo',
      method: 'get'
    })
  },
  getExamRecord (params) {
    return request({
      url: '/student/getExamRecord',
      method: 'get',
      params: params
    })
  },
  getExamInfoById (params) {
    return request({
      url: '/student/getExamInfoById',
      method: 'get',
      params: params
    })
  },
  getExamRecordById (recordId) {
    return request({
      url: `/student/getExamRecordById/${recordId}`,
      method: 'get'
    })
  }
}
